//package com.anzhen;
//
//import com.alibaba.fastjson.JSON;
//import com.anzhen.interview.xml.data.Body;
//import com.anzhen.interview.xml.study.Dog;
//import com.anzhen.interview.xml.study.LittleDog;
//import com.anzhen.interview.xml.study.Person;
//import com.anzhen.interview.xml.study.Person_2;
//import com.anzhen.interview.xml.study.Person_3;
//import com.anzhen.interview.xml.study.Person_4;
//import com.anzhen.interview.xml.study.Person_5;
//import org.apache.commons.io.FileUtils;
//import org.junit.Test;
//import org.w3c.dom.Document;
//import org.w3c.dom.Element;
//import request.BOSFXIIType;
//import request.CommonRqHdrType;
//import request.ObjectFactory;
//import request.TDpCorpStmtInqRqType;
//import request.TransferRequest;
//
//import javax.xml.bind.JAXB;
//import javax.xml.bind.JAXBContext;
//import javax.xml.bind.JAXBElement;
//import javax.xml.bind.JAXBException;
//import javax.xml.bind.Marshaller;
//import javax.xml.bind.Unmarshaller;
//import javax.xml.namespace.QName;
//import javax.xml.parsers.DocumentBuilderFactory;
//import javax.xml.parsers.ParserConfigurationException;
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.io.StringReader;
//
///**
// * Created by anzhen on 2017-4-27.
// */
//public class JAXBTest1 {
//	/**
//	 * 反序列化转账
//	 * @throws IOException
//	 */
//	@Test
//	public void toTranserBean() throws IOException {
//		String xml = FileUtils.readFileToString(new File("src/test/resources/transfer.xml"),"utf8");
//		System.out.println(xml);
//		TransferRequest unmarshal = JAXB.unmarshal(new StringReader(xml), TransferRequest.class);
//		System.out.println(JSON.toJSONString(unmarshal));
//	}
//
//	/**
//	 * 反序列化转账
//	 * @throws IOException
//	 */
//	@Test
//	public void to() throws IOException {
//		String xml = FileUtils.readFileToString(new File("src/test/resources/transfer.xml"),"utf8");
//		System.out.println(xml);
//
//	}
//
//
//
//}
//
